toToolkit

open fun toToolkit(bitmap: Bitmap): BufferedImage

Creates and returns an instance of BufferedImage obtained from the given bitmap. The image will have the same width and height as the bitmap.

Parameters

bitmap

the bitmap used to obtain BufferedImage

Throws

when the given bitmap size is empty